package com.atguigu.guli.service.sms.controller.api;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.sms.service.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/sms")

public class SmsController {
    @Autowired
    SmsService smsService ;

    //发送短信
    @GetMapping("send/{mobile}")
    public R send(@PathVariable String mobile) {
        smsService.send(mobile) ;
        return R.ok() ;
    }
}
